﻿@charset "UTF-8";
@import "./mixins/core";
//-----------------------------------------------------
// line-list.scss
//-----------------------------------------------------

$lineSelectSwitch:         true !default; // 单选
$lineMutilSelectSwitch:    true !default; // 多选

$lineVIconSwitch:          false !default; // icon v

.line-item {
    @extend %bar-line;
}
.line-list {
    background: #fff;
    + .line-list {
        margin-top: 10px;
    }
}
.line-list--center {
    text-align: center;
}
.line-list--indent {
    @extend %border-tb;
    .line-item::before {
        left: 10px;
    }
}
.line-list--after-v {
    .line-item {
        padding-right: 30px;
        @extend %item-v-right;        
    }
}
.line-list--flex {
    .line-item {
        display: flex;
        align-items: center;
        padding-right: 0;
        .item-icon,
        .item-img,
        .icon-switch,
        .remind-num,
        .item-append{
            margin-right: 10px;
        }
        .item-tt,
        .item-bd {
            flex: 1;
            margin-right: 10px;
            width: 1%;
        }
        .bd-tt {
            line-height: 1.3;
            font-size: 16px;
            margin-bottom: 4px;
        }
        .bd-txt {
            line-height: 1.5;
            color: #999;
            font-size: 12px;
        }
        .item-append{
            color: $color9;
        }
        .icon-v-right {
            width: 30px;
            height: 30px;
            color: $colorC;
            margin-left: -10px;
        }
        .remind-num {
            position: static;
            line-height: 1.5;
        }
    }
}

@if $lineSelectSwitch{
    .line-list--select {
        .line-item {
            padding-right: 30px;
            &.active {
                color: $primary;
                &::after {
                    content: "";
                    display: block;
                    width: 14px;
                    height: 8px;
                    border-bottom: 2px solid currentColor;
                    border-left: 2px solid currentColor;
                    transform: rotate(-52deg) translate(0, -50%);
                    box-sizing: border-box;
                    position: absolute;
                    top: 50%;
                    right: 8px;
                    margin-top: -4px;
                }
            }
        }
    }
}
@if $lineMutilSelectSwitch{
    .line-list--multi-select {
        .active{
            color: $primary;
            .icon-checkbox{
                color: $primary;
            }
        }
    }
}

@if $lineVIconSwitch{
    .line-list--icon-v {
        .line-item {
            padding-right: 25px;        
        }
        .icon-v-right {
            position: absolute;
            width: 30px;
            height: 100%;
            top: 50%;
            right: 0;
            transform: translate(0, -50%);
            color: #ccc;
        }
    }
}